package AbstractFactory;

public class ColorFactory extends AbstractFactory{

    @Override
    public Shape getShape(String shapeType) {
        return null;
    }

    @Override
    public Color getColor(String colorType) {

        if (colorType == null){
            return null;
        }

        if (colorType.equalsIgnoreCase("yellow")){
            return new Yellow();
        }else if (colorType.equalsIgnoreCase("RED")){
            return new Red();
        }else if (colorType.equalsIgnoreCase("blue")){
            return new Blue();
        }

        return null;
    }
}
